public class TelevisionDemo {

	public static void main(String[] args) {

		Television tv1 = new Television();

		tv1.make = "Samsung";
		tv1.model = "UN46F6350A";
		tv1.size = 46;

		System.out.println("The TV is ON = " + tv1.isOn);

		if (!tv1.isOn) {

			tv1.switchOn();

		}

		tv1.displayInfo();

		int channelNo = tv1.increaseChannelNo(1);
		System.out.println("Channel number = " + channelNo);

		tv1.displayChannelName();

		if (tv1.isAgeRestrictedChannel(18)) {

			tv1.isOn = false;
		}

		System.out.println("The TV is ON = " + tv1.isOn);

	}

}
